<template>
  <div class="demo">
    <slot></slot>
    <div class="t1">{{name}}</div>
    <div class="t2">嘻嘻嘻</div>
    <div class="t3">啦啦啦</div>
    <!-- <el-button @click="ddd">点击</el-button> -->
    <el-button @click="ddd">点击</el-button>
  </div>
</template>

<script>
import {ElButton} from 'element-plus'
export default {
  props:['sb','name'],
  components:{ElButton},
  data () {
    return {
 
    }
  },
  methods:{
    ddd(){
      console.log(1111)
      this.$emit('aaa','cvaa')
    }
  }
}
</script>
 
<style lang="less" scoped>
  .t2{
    color: red;
    height: 60px;
  }
  .demo{
  
  }
</style>